# -*- coding: utf-8 -*- 

###########################################################################
## Python code generated with wxFormBuilder (version Feb 16 2016)
## http://www.wxformbuilder.org/
##
## PLEASE DO "NOT" EDIT THIS FILE!
###########################################################################

import wx
import wx.xrc

###########################################################################
## Class MainFrame
###########################################################################

class MainFrame ( wx.Frame ):
	
	def __init__( self, parent ):
		wx.Frame.__init__ ( self, parent, id = wx.ID_ANY, title = wx.EmptyString, pos = wx.DefaultPosition, size = wx.Size( 500,300 ), style = wx.DEFAULT_FRAME_STYLE|wx.TAB_TRAVERSAL )
		
		self.SetSizeHintsSz( wx.DefaultSize, wx.DefaultSize )
		
		MainSizer = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_panel1 = wx.Panel( self, wx.ID_ANY, wx.DefaultPosition, wx.DefaultSize, wx.TAB_TRAVERSAL )
		bSizer101 = wx.BoxSizer( wx.VERTICAL )
		
		bSizer7 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_staticText2 = wx.StaticText( self.m_panel1, wx.ID_ANY, u"Manual", wx.DefaultPosition, wx.Size( 100,-1 ), 0 )
		self.m_staticText2.Wrap( -1 )
		bSizer7.Add( self.m_staticText2, 0, wx.ALL, 5 )
		
		self.manualStart = wx.Button( self.m_panel1, wx.ID_ANY, u"Start", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer7.Add( self.manualStart, 0, wx.ALL, 5 )
		
		self.manualStop = wx.Button( self.m_panel1, wx.ID_ANY, u"Stop", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer7.Add( self.manualStop, 0, wx.ALL, 5 )
		
		
		bSizer101.Add( bSizer7, 1, wx.EXPAND, 5 )
		
		bSizer8 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_staticText3 = wx.StaticText( self.m_panel1, wx.ID_ANY, u"Auto", wx.DefaultPosition, wx.Size( 100,-1 ), 0 )
		self.m_staticText3.Wrap( -1 )
		bSizer8.Add( self.m_staticText3, 0, wx.ALL, 5 )
		
		self.autoStart = wx.Button( self.m_panel1, wx.ID_ANY, u"Start", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer8.Add( self.autoStart, 0, wx.ALL, 5 )
		
		self.autoStop = wx.Button( self.m_panel1, wx.ID_ANY, u"Stop", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer8.Add( self.autoStop, 0, wx.ALL, 5 )
		
		
		bSizer101.Add( bSizer8, 1, wx.EXPAND, 5 )
		
		bSizer81 = wx.BoxSizer( wx.HORIZONTAL )
		
		self.m_staticText31 = wx.StaticText( self.m_panel1, wx.ID_ANY, u"Map", wx.DefaultPosition, wx.Size( 100,-1 ), 0 )
		self.m_staticText31.Wrap( -1 )
		bSizer81.Add( self.m_staticText31, 0, wx.ALL, 5 )
		
		self.mapStart = wx.Button( self.m_panel1, wx.ID_ANY, u"Start", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer81.Add( self.mapStart, 0, wx.ALL, 5 )
		
		self.mapStop = wx.Button( self.m_panel1, wx.ID_ANY, u"Stop", wx.DefaultPosition, wx.DefaultSize, 0 )
		bSizer81.Add( self.mapStop, 0, wx.ALL, 5 )
		
		
		bSizer101.Add( bSizer81, 1, wx.EXPAND, 5 )
		
		gbSizer1 = wx.GridBagSizer( 0, 0 )
		gbSizer1.SetFlexibleDirection( wx.BOTH )
		gbSizer1.SetNonFlexibleGrowMode( wx.FLEX_GROWMODE_SPECIFIED )
		
		self.backward = wx.Button( self.m_panel1, wx.ID_ANY, u"Backward", wx.DefaultPosition, wx.DefaultSize, 0 )
		gbSizer1.Add( self.backward, wx.GBPosition( 2, 1 ), wx.GBSpan( 1, 1 ), wx.ALL, 5 )
		
		self.right = wx.Button( self.m_panel1, wx.ID_ANY, u"Right", wx.DefaultPosition, wx.DefaultSize, 0 )
		gbSizer1.Add( self.right, wx.GBPosition( 1, 2 ), wx.GBSpan( 1, 1 ), wx.ALL, 5 )
		
		self.forward = wx.Button( self.m_panel1, wx.ID_ANY, u"Forward", wx.DefaultPosition, wx.DefaultSize, 0 )
		gbSizer1.Add( self.forward, wx.GBPosition( 0, 1 ), wx.GBSpan( 1, 1 ), wx.ALL, 5 )
		
		self.left = wx.Button( self.m_panel1, wx.ID_ANY, u"Left", wx.DefaultPosition, wx.DefaultSize, 0 )
		gbSizer1.Add( self.left, wx.GBPosition( 1, 0 ), wx.GBSpan( 1, 1 ), wx.ALL, 5 )
		
		
		bSizer101.Add( gbSizer1, 1, wx.EXPAND, 5 )
		
		
		self.m_panel1.SetSizer( bSizer101 )
		self.m_panel1.Layout()
		bSizer101.Fit( self.m_panel1 )
		MainSizer.Add( self.m_panel1, 1, wx.EXPAND |wx.ALL, 5 )
		
		
		self.SetSizer( MainSizer )
		self.Layout()
		
		self.Centre( wx.BOTH )
		
		# Connect Events
		self.manualStart.Bind( wx.EVT_LEFT_DOWN, self.onManualStart )
		self.manualStop.Bind( wx.EVT_LEFT_DOWN, self.onManualStop )
		self.autoStart.Bind( wx.EVT_LEFT_DOWN, self.onAutoStart )
		self.autoStop.Bind( wx.EVT_LEFT_DOWN, self.onAutoStop )
		self.mapStart.Bind( wx.EVT_LEFT_DOWN, self.onMapStart )
		self.mapStop.Bind( wx.EVT_LEFT_DOWN, self.onMapStop )
		self.backward.Bind( wx.EVT_LEFT_DOWN, self.onBackwardClicked )
		self.backward.Bind( wx.EVT_LEFT_UP, self.onBackwardUp )
		self.right.Bind( wx.EVT_LEFT_DOWN, self.onRightClicked )
		self.right.Bind( wx.EVT_LEFT_UP, self.onRightUp )
		self.forward.Bind( wx.EVT_LEFT_DOWN, self.onForwardClicked )
		self.forward.Bind( wx.EVT_LEFT_UP, self.onForwardUp )
		self.left.Bind( wx.EVT_LEFT_DOWN, self.onLeftClicked )
		self.left.Bind( wx.EVT_LEFT_UP, self.onLeftUp )
	
	def __del__( self ):
		pass
	
	
	# Virtual event handlers, overide them in your derived class
	def onManualStart( self, event ):
		event.Skip()
	
	def onManualStop( self, event ):
		event.Skip()
	
	def onAutoStart( self, event ):
		event.Skip()
	
	def onAutoStop( self, event ):
		event.Skip()
	
	def onMapStart( self, event ):
		event.Skip()
	
	def onMapStop( self, event ):
		event.Skip()
	
	def onBackwardClicked( self, event ):
		event.Skip()
	
	def onBackwardUp( self, event ):
		event.Skip()
	
	def onRightClicked( self, event ):
		event.Skip()
	
	def onRightUp( self, event ):
		event.Skip()
	
	def onForwardClicked( self, event ):
		event.Skip()
	
	def onForwardUp( self, event ):
		event.Skip()
	
	def onLeftClicked( self, event ):
		event.Skip()
	
	def onLeftUp( self, event ):
		event.Skip()
	

